#include "keyboard.h"
#include <QPushButton>
#include <QGridLayout>
//KeyBoard::KeyBoard(QWidget *parent) : QDialog(parent)
//{

//}

KeyBoard::KeyBoard(QString str,QWidget *parent) : QDialog(parent)
{
    QPushButton *pSaveButton= new QPushButton;
    QPushButton *pCloseButton= new QPushButton;
    QPushButton *DGIPButton = new QPushButton;
    pSaveButton->setText(tr("a"));
    pCloseButton->setText(tr("b"));
    DGIPButton->setText(tr("c"));
    connect(pCloseButton, SIGNAL(clicked()), this, SLOT(close()));
    pSaveButton->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
    pCloseButton->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
    DGIPButton->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
    QGridLayout *pSubLayout = new QGridLayout;
    pSubLayout->addWidget(pSaveButton,			0, 1, 1, 1);
    pSubLayout->addWidget(DGIPButton,		    1, 3, 1, 1);
    pSubLayout->addWidget(pCloseButton,         2, 5, 1, 1);
    str="123456789";
    // str[0]='a';
  //  str[1]="b";
  //  str[2="c";
    this->setLayout(pSubLayout);
    //this->setWindowFlags(Qt::FramelessWindowHint);
    this->exec();
   // this->set(tr("网络设置"));
}
KeyBoard::~KeyBoard()
{

}
